package com.patterns.flyweight;

public class Test {
	public static void main(String[] args) {
		// >> 下棋时调用棋子
		ChessFlyweightFactory.getChess("黑色").display(new ChessUnsharedConcreteFlyweight(10, 20));
		ChessFlyweightFactory.getChess("白色").display(new ChessUnsharedConcreteFlyweight(30, 20));
		ChessFlyweightFactory.getChess("黑色").display(new ChessUnsharedConcreteFlyweight(20, 20));
		ChessFlyweightFactory.getChess("白色").display(new ChessUnsharedConcreteFlyweight(30, 30));
		ChessFlyweightFactory.getChess("黑色").display(new ChessUnsharedConcreteFlyweight(40, 30));
	}
}
